package ooday02;

public class ExtendsTes {
    public static void main(String[] args) {
        Student zs = new Student("张三",22,"潍坊","jsd2408","001");
        zs.study();
        zs.eat();
        zs.sleep();
        zs.sayHi();

        Teacher lzg = new Teacher("李志刚",33,"昌乐",6000);
        lzg.eat();
        lzg.sleep();
        lzg.sayHi();
        lzg.teach();

        Doctor ls = new Doctor("李四",40,"青岛","主任医师");
        ls.eat();
        ls.sleep();
        ls.sayHi();
        ls.cut();
    }
}
